import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store';

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/base.css';

import './resource/styles/index.css'; // 全局css样式

import './resource/icons/iconfont.css'; // 图标

import i18n from './resource/lang'; //国际化资源

import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';  // collapse 展开折叠

if (!process.env.IS_WEB) {
    Vue.use(require('vue-electron'))
};

Vue.use(Element, CollapseTransition.name, CollapseTransition, {
    size: 'medium', // 设置 element-ui 默认大小
    i18n: (key, value) => i18n.t(key, value)
});

Vue.config.productionTip = false;

//开启debug模式
Vue.config.debug = true;

/* eslint-disable no-new */
new Vue({
    el: '#app',
    store,
    router,
    i18n,
    components: {App},
    template: '<App/>'
});